﻿using WQLWebAPI.Application.Images.Dtos;
using WQLWebAPI.Domain.Entities;
using WQLWebAPI.Infrastructure.CommonDtos;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace WQLWebAPI.Application.Images
{
    public interface IImageService
    {
        Task<Image> GetAsync(int id);
        Task<Image> CreateAsync(byte[] value);
        Task<bool> CreateManyAsync(List<byte[]> value);
        Task<bool> UpdateAsync(int id, byte[] value);
        Task<bool> UpdateManyAsync(List<ImageDto> values);
        Task<List<Image>> GetAsync();
        Task<bool> RemovesAsync(List<int> id);
        /// <summary>
        /// 将excel转换为html
        /// </summary>
        /// <param name="excelContent"></param>
        /// <param name="imgUrls"></param>
        /// <returns></returns>
        Task<string> GetHtmlContent(ExcelContentDto excelContent, string imgUrls);

    }
}
